package com.bawei.mvp.Presenter;

import com.bawei.mvp.Model.initModel;
import com.bawei.mvp.View.initView;

/**
 * create by ertu
 * create on 2021/7/26
 * description
 */
public class BoosPresenter<M extends initModel,V extends initView> implements initPresenter {

    protected  V viwes;
    protected M models;

    public BoosPresenter(V viwes, M models) {
        this.viwes = viwes;
        this.models = models;
    }


    @Override
    public void dires() {
        if (models!=null)
        {
            models=null;
            models.dires();
        }
        if (viwes!=null)
        {
            viwes=null;
        }
    }
}
